
Ext.onReady(function()
{
    new X.form.FormPanel({

        title            : 'Login',
        submitButtonText : 'Login',
        submitUrl        : '/login/ajax-login',
        returnUrl        : '/',
        width            : 370,
        labelWidth       : 70,

        items:[
            { xtype: 'box', autoEl: { tag: 'div', html: '<div class="app-msg"><IMG SRC="img/logo.png" \
              class="app-msg"> <h3>Ingrese sus datos</h3> <br></div>' }
            },
            new X.field.Text({fieldLabel:'Usuario',    id:'username', width:230}),
            new X.field.Pass({fieldLabel:'Contraseña', id:'password', width:230})
        ]
    });

    Ext.getCmp('username').focus();
});
